package model

import "time"

//订单发货单表

type OrderInvoice struct {
	BaseModel
	OrderId      uint    `form:"order_id" json:"order_id" gorm:"not null;default:0;comment:订单表order主键id"`
	OrderSc      string  `form:"order_sc" json:"order_sc"  gorm:"not null;comment:订单号"`
	UserId       uint    `form:"user_id" json:"user_id" gorm:"not null;default:0;comment:用户表user主键id"`
	AddressId    uint    `form:"address_id" json:"address_id" gorm:"not null;default:0;comment:用户收货表user_address主键id"`
	ShipCode     string  `form:"ship_code" json:"ship_code"  gorm:"size:50;comment:物流code"`
	ShipName     string  `form:"ship_name" json:"ship_name"  gorm:"size:30;comment:物流名称"`
	FreightPrice float64 `form:"freight_price" json:"freight_price" gorm:"type:decimal(10,2) not null;default:0.00;comment:邮费"`
	InvoiceNo    string  `form:"invoice_no" json:"invoice_no"  gorm:"size:50;comment:快递单号"`

	AuthId   uint   `form:"auth_id" json:"auth_id" gorm:"not null;default:0;comment:管理员表auth主键id"`
	AuthNote string `form:"auth_note" json:"auth_note" gorm:"comment:管理员备注"`

	SendType           uint      `form:"send_type" json:"send_type" gorm:"type:tinyint(1);default:1;comment:发货方式0未知 1自填快递 2无需物流 3在线预约 4电子面单"`
	ConfirmReceiptTime time.Time `form:"confirm_receipt_time" json:"confirm_receipt_time"  gorm:"comment:收货确认时间"`
}
